# 统计是给定字符串前缀的字符串数目

def countPrefixes(self, words, s):
    count = 0
    for word in words:
        if s.startswith(word):
            count += 1
    return count